'use strict';

// mysql数据库相关配置
exports.mysql = {
  // 单数据库信息配置
  client: {
    // host
    host: '172.168.11.65',
    // 端口号
    port: '3306',
    // 用户名
    user: 'root',
    // 密码
    password: 'petmysql',
    // 数据库名
    database: 'manage-sys_db',
  },
  // 是否加载到 app 上，默认开启
  app: true,
  // 是否加载到 agent 上，默认关闭
  agent: false,
  
};

// redis配置
exports.redis = {
  client: {
    cluster: true,
    nodes: [
      {
          port: 6379,
          host: '172.169.1.249',
          password: '',
          db: 'db0',
      },
      {
          port: 6380,
          host: '172.169.1.249',
          password: '',
          db: 'db0',
      },
      {
          port: 6379,
          host: '172.169.1.248',
          password: '',
          db: 'db0',
      },
      {
          port: 6380,
          host: '172.169.1.248',
          password: '',
          db: 'db0',
      },
      {
          port: 6379,
          host: '172.169.1.247',
          password: '',
          db: 'db0',
      },
      {
          port: 6380,
          host: '172.169.1.247',
          password: '',
          db: 'db0',
      },
    ],
  },
};

  // 在这添加用户配置信息
  exports.userConfig = {
    imgPath: 'https://api.hbzner.com/dog',
  };

